import request from '@/utils/request'

/**
 * 载入请求
 */
export function getRequest(id) {
  return request({
    url: '/api/request/' + id,
    method: 'get'
  })
}

/**
 * 保存请求
 */
export function saveRequest(param) {
  return request({
    url: '/api/request',
    method: 'post',
    data: param
  })
}


/**
 * 删除请求
 */
export function destroyRequest(id) {
  return request({
    url: '/api/request/' + id,
    method: 'delete'
  })
}

/**
 * 启动请求
 */
export function doRequest(param) {
  return request({
    url: '/api/request/do',
    method: 'post',
    data: param
  })
}

